openFileForWriting

abstract override fun openFileForWriting(filename: String): BufferedSink

Returns a stream for writing to a local data file, encrypting as it goes. If filename is a relative path (which it should be) it will be based on the safe root of the data folder.